﻿using System;

namespace DrivingLicense
{
    class Program
    {
        static void Main(string[] args)
        {
            Console.Write("Age: ");
            int age = int.Parse(Console.ReadLine());

            if(age >= 18)
            {
                Console.Write("Is exam passed: ");
                bool isExamPassed = bool.Parse(Console.ReadLine());

                if (isExamPassed)
                {
                    Console.WriteLine("Yes!");
                }
                else
                {
                    Console.WriteLine("No!");
                }
            }
            else
            {
                Console.WriteLine("No!");
            }

            Console.ReadKey();
        }
    }
}
